package com.hmz.backend.service.chat;

import cn.hutool.json.JSONObject;

import java.util.Date;

public interface MessageService {
//    JSONObject sendPrivateMessage(JSONObject data);
    JSONObject getPrivateMessage(int chatRoomId);
    int getMaxPages(int chatRoomId,int pageSize);
    JSONObject getOldMessage(int chatRoomId,int pageNow,int pageSize);
    JSONObject getUserMessageListInChatRoom(int chatRoomId, int userId);
    JSONObject getTimeListInChatRoom(int chatRoomId);
    JSONObject getTypeMessageListInChatRoom(int chatRoomId,int type);
    JSONObject getTimeMessageListInChatRoom(int chatRoomId, String  date);
}
